package com.corejsf;

import java.util.ArrayList;
import java.util.List;

public class Thread {
	
	private Category cat;
	private int id;
	private String title;
	private List<Post> posts = new ArrayList<Post>();
	
	
	public Category getCat() {
		return cat;
	}
	public void setCat(Category cat) {
		this.cat = cat;
	}
	public List<Post> getPosts() {
		return posts;
	}
	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void addPost(Post p) {
		posts.add(p);		
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

}
